<!DOCTYPE html>
<html>
	<head>
		<title>兑换</title>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/weixin/sn/css/reset.css"/>
		<link rel="stylesheet" href="{:_SKIN}/weixin/sn/ydui/build/css/ydui.css" />
		<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_400457_mqmlp1g1kh1qyqfr.js"/>
		<script src="{:_SKIN}/weixin/sn/ydui/build/js/ydui.flexible.js"></script>
		<style type="text/css">
			body{background-color:#f4f4f4}
			@font-face{font-family:iconfont;src:url(http://at.alicdn.com/t/font_400457_mqmlp1g1kh1qyqfr.eot);src:url(http://at.alicdn.com/t/font_400457_mqmlp1g1kh1qyqfr.eot?#iefix) format('embedded-opentype'),url(http://at.alicdn.com/t/font_400457_mqmlp1g1kh1qyqfr.woff) format('woff'),url(http://at.alicdn.com/t/font_400457_mqmlp1g1kh1qyqfr.ttf) format('truetype'),url(http://at.alicdn.com/t/font_400457_mqmlp1g1kh1qyqfr.svg#iconfont) format('svg')}
			.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}
			.shop-0{height:54px;background:#15ce67;line-height:54px;color:#FFF;text-align:center}
			.xw_90{width:90%;margin:0 auto}
			.xw_90 h3{font-size:18px}
			.neilian{display:inline}
			.zuo{float:left}
			.you{float:right}
			.btn1{background-color:#15ce67;color:#FFF;border-radius:4px}
			.btn2{color:#15ce67;background-color:#FFF;border-radius:4px;border:1px solid #15ce67}
			.fom{padding:30px 20px}
			.pp{color:#a4a4a4;font-size:12px}
			.font{font-size: 22px;}

		</style>
	</head>
	<body>
		<div class="shop-0">
	<div class="xw_90">
		<a href="{:url('weixin/my/index')}"><i class="iconfont zuo font">&#xe664;</i></a>
		<h3 class="neilian">礼品卡购买</h3>
		<a href="{:url('weixin/my/index')}"><i class="icon-home-outline you font"></i></a>
	</div>
</div>

<div class="fom">
	<form action="">
		<img src="http://img.hf0557.com/2017/09/27/Fn8YKbB7-m8eCuNJULoazTUwao7O899.jpg"  width="100%"/ >
		
		<div class="m-button">
			<input type="button" class="btn-block btn1" id="J_ToastS" onclick="pay()" value="立即支付 ￥280">
		</div>
	</form>
</div>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="{:_SKIN}/weixin/sn/ydui/build/js/ydui.js"></script>
	 <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>

    <script type="text/javascript">
    
        wx.config({$qm|json_encode});

        function pay(){

            var data={

                id:"288",
               


            };

          
                YDUI.dialog.loading.open('支付中');

                $.post(" ", data ,function(res){


                    var  options = res;

                    // 支付成功后的操作
                    options.success = function () {
                        window.location.href = "{:url('weixin/my/wallet',['type'=>'yfk'])}";
                    };

                    options.cancel= function (res) {  
                    YDUI.dialog.loading.close();

                     };







                    // 传入参数，发起JSAPI支付
                    wx.chooseWXPay(options);


                });


           






        }

        wx.ready(function () {

            wx.hideAllNonBaseMenuItem();

        });

    </script>		
<!--弹出框-->	


</script>
	</body>
</html>
